package cn.yr.service.impl;

import cn.yr.common.core.domain.entity.YrMessage;
import cn.yr.mapper.YrMessageMapper;
import cn.yr.service.YrMessageService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("yrMessageService")
public class YrMessageServiceImpl extends ServiceImpl<YrMessageMapper, YrMessage> implements YrMessageService {

	@Autowired
	private YrMessageMapper yrMessageMapper;

	@Override
	public YrMessage saveMessage(YrMessage yrMessage) {
		yrMessageMapper.insert(yrMessage);
		return yrMessage;
	}
}